/* 夸克网盘倒计时插件 - 高端大气自适应样式（含外部碎纸屑效果） */
.countdown-content-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.countdown-content-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.countdown-section {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.countdown-message {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.countdown-display {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 25px 0;
    position: relative;
    z-index: 2;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.waiting-text {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 20px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.hidden-content {
    display: none;
    padding: 40px 30px;
    background: white;
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-box {
    text-align: center;
}

.content-box p {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border-left: 6px solid #8b5cf6 !important;
    text-align: center !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 5;
}

.content-box p:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4) !important;
}

.content-box a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: all 0.3s ease !important;
}

.content-box a:hover {
    color: #fef3c7 !important;
    border-bottom-color: #fef3c7 !important;
}

.restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.restart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.restart-btn:hover::before {
    left: 100%;
}

/* 外部碎纸屑效果样式 - 覆盖整个视口 */
.global-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--confetti-color, #ff0000);
    opacity: 0;
    animation: confetti-fall 3s ease-in forwards;
    border-radius: 2px;
}

.confetti-piece.shape-circle {
    border-radius: 50%;
}

.confetti-piece.shape-rect {
    border-radius: 2px;
}

.confetti-piece.shape-triangle {
    width: 0;
    height: 0;
    background: transparent !important;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid var(--confetti-color, #ff0000);
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) translateX(0) rotate(0deg) scale(1);
    }
    10% {
        transform: translateY(100px) translateX(10px) rotate(36deg) scale(1);
    }
    20% {
        transform: translateY(200px) translateX(-15px) rotate(72deg) scale(1);
    }
    30% {
        transform: translateY(300px) translateX(20px) rotate(108deg) scale(1);
    }
    40% {
        transform: translateY(400px) translateX(-10px) rotate(144deg) scale(1);
    }
    50% {
        transform: translateY(500px) translateX(15px) rotate(180deg) scale(1);
    }
    60% {
        transform: translateY(600px) translateX(-20px) rotate(216deg) scale(0.9);
    }
    70% {
        transform: translateY(700px) translateX(10px) rotate(252deg) scale(0.8);
    }
    80% {
        transform: translateY(800px) translateX(-15px) rotate(288deg) scale(0.7);
    }
    90% {
        transform: translateY(900px) translateX(20px) rotate(324deg) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translateY(1000px) translateX(0) rotate(360deg) scale(0.5);
    }
}

/* 庆祝文字动画 - 在容器内部 */
.celebration-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    z-index: 150;
    animation: celebration-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    white-space: nowrap;
}

@keyframes celebration-pop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-content-container {
        margin: 20px 15px;
        border-radius: 16px;
    }
    
    .countdown-section {
        padding: 30px 20px;
    }
    
    .countdown-message {
        font-size: 1.2em;
    }
    
    .hidden-content {
        padding: 30px 20px;
    }
    
    .content-box p {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .celebration-text {
        font-size: 2em;
    }
    
    .confetti-piece {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .countdown-content-container {
        margin: 15px 10px;
        border-radius: 12px;
    }
    
    .countdown-section {
        padding: 25px 15px;
    }
    
    .countdown-message {
        font-size: 1.1em;
    }
    
    .countdown-display {
        padding: 6px 12px;
        font-size: 1.1em;
    }
    
    .hidden-content {
        padding: 25px 15px;
    }
    
    .restart-btn {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
    }
    
    .celebration-text {
        font-size: 1.5em;
    }
    
    .confetti-piece {
        width: 8px;
        height: 8px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .countdown-content-container {
        background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .hidden-content {
        background: #1e293b;
    }
    
    .content-box p {
        background: linear-gradient(135deg, #7e22ce 0%, #c026d3 100%) !important;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-content-container {
    animation: fadeIn 0.8s ease-out;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .countdown-section {
        background: #000;
    }
    
    .content-box p {
        background: #000 !important;
        border: 2px solid #fff !important;
    }
    
    .restart-btn {
        background: #000;
        border: 2px solid #fff;
    }
}